package homeAppliances;

/**
 * Clasa JavaBean al wc-ului
 */
import graphicalInterface.HomeInterface;

import org.eclipse.swt.graphics.Image;


public class WC implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/* Properties */
	private boolean stare = false;
	private Image image;
	int x, y;

	/* Constructor */
	public WC() {
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public boolean getStare() {
		return stare;
	}

	public void setStare(boolean i) {

		stare = i;

		if (stare == false) {
			setImage(new Image(HomeInterface.display, "pozeAparate/wcInchis.png"));
			stare = true;
		} else {
			setImage(new Image(HomeInterface.display, "pozeAparate/wcDeschis.png"));
			stare = false;
		}
	}

	public Image getImage() {
		return image;
	}

	public void setImage(Image img) {
		image = img;
	}
}
